B Binance · The world's largest crypto exchangeBinance Sign up → AD OKX OKX · A leading global crypto exchangeOKX Sign up → AD

Text Case Converter

Change the case style of your text with one click

What this tool does

Paste English text and press one button to convert it into one of eight styles: UPPERCASE, lowercase, Title Case, Sentence case, and the programming styles camelCase, PascalCase, snake_case and kebab-case, shown in the box below. A copy button grabs the result at once. Use it to rename variables and functions to another convention, make headings or lists consistent, or fix text typed with Caps Lock on.

How it is calculated

Upper and lower case use the browser's built-in conversion. Title Case lowercases everything, then capitalises the first letter after each word boundary. Sentence case lowercases everything, then capitalises only the first letter of the text and the first letter after a full stop, question mark or exclamation mark followed by whitespace. The four programming styles first split the text into words: between a lowercase letter or digit and a following capital, at underscores and hyphens, and at spaces. Words are then lowercased and joined by each style's rule. For example, 'user id' becomes userId in camelCase, UserId in PascalCase, user_id in snake_case and user-id in kebab-case. 'userID', with consecutive capitals, is split only once at the front, so snake_case gives user_id.

  • Type text into the source box (a sample sentence starts out converted to upper case)
  • Press the button for the style you want
  • Check the result box; it is read-only
  • Press copy to put the result on the clipboard; the button briefly says copied
  • After editing the source, press a style button again to update the result

Things to know

  • Title Case capitalises every word, including short ones like a, of and the. Adjust by hand for publisher-specific headline rules.
  • Apostrophes count as word boundaries, so don't becomes Don'T. Skim the result for contractions.
  • Sentence case lowercases everything first, so proper nouns and the pronoun I become lowercase. Lines separated only by a line break without punctuation are not capitalised.
  • An all-caps abbreviation immediately followed by another capitalised word cannot be split and stays one word. Add a space after the abbreviation before converting.
  • By convention, camelCase suits JavaScript and Java variables, snake_case Python variables and database columns, and kebab-case URLs and CSS class names.
  • Korean and digits have no case and pass through unchanged. Accented letters may not be capitalised by Title Case.

Frequently asked questions

What happens when I convert 'userID' to snake_case?

It splits once at the lowercase-to-capital boundary and gives user_id. Consecutive capitals are treated as one chunk.

How does Sentence case detect sentences?

It capitalises the very start of the text and the first letter after a full stop, question mark or exclamation mark followed by a space or line break. Line breaks without punctuation are not detected.

What about German ß or Turkish dotless i?

It follows the browser's default conversion rules and applies no language-specific rules. Check results for languages other than English.

Is my text saved or sent anywhere?

No. Conversion and copying happen entirely in your browser and nothing is sent to a server. Reloading restores the sample text.

← na.to home